import commands
import re

fileList = commands.getoutput("ls -1 *.po")
files = fileList.split('\n')
for i in range(files.__len__()):
	print "Doing ", "msgfmt "+files[i]+" -o "+(re.sub(".po",".mo",files[i]))
	commands.getoutput("msgfmt "+files[i]+" -o "+(re.sub(".po",".mo",files[i])))
